{%include file="m.index.header.tpl.php"%}
<!--头部 end-->
<!--主体部分-->

<div class="container" style="margin-top:70px;">
    <div class="row" style="margin-right:10%;">
        <div  class="col-xs-sm  text-right" > <a href="index.php?a=homework.add&staff_id={%$staff_id%}" class="btn btn-primary btn-sm" style="float:right;">增加</a></div>
    </div><!--row  end-->




    <div class="row" style="margin-top:15px;margin-left:1px; margin-right:1px;">
        <!-- <h5>总计44条信息</h5>-->
        {%foreach from=$homework_lists key=key item=value%}

        <table class="table table-striped table-bordered text-center"  id="middles">
            <tr>

                <td>班级</td>
                <td>{%$value.class_name%}</td>

            </tr>

            <tr>

                <td>学科</td>
                <td>{%$value.subject_name%}</td>

            </tr>

            <tr>

                <td>日期</td>
                <td>{%$value.homework_date%}</td>

            </tr>
            <tr>

                <td>作业内容</td>
                <td>{%$value.homework_content%}</td>

            </tr>


            <tr>
                <td>操作</td>
                   <td> <a type="button" class="btn btn-danger  " href="index.php?a=homework.update&homework_id={%$value.homework_id%}" >修改</a> </td>
            </tr>

        </table>
        {%/foreach%}





    </div>


</div><!--container  end-->

<!--主体部分  end-->
<!--底部-->
{%include file="m.index.footer.tpl.php"%}


<!--底部end-->
<!--日历-->
<script src="mstatic/js/jquery.min.js" type="text/javascript"></script>
<script src="mstatic/js/bootstrap.min.js"  type="text/javascript"></script>
<script src="mstatic/js/jquery-ui.js"  type="text/javascript"></script><!--日历-->
<script>
    $(function() {
        $( "#start_time" ).datepicker({
            defaultDate: "+1w",
            changeMonth: true,
            changeYear: true,
            numberOfMonths:1,
            onClose: function( selectedDate ) {
                $( "#end_time" ).datepicker( "option", "minDate", selectedDate );
            }
        });
        $( "#end_time" ).datepicker({
            defaultDate: "+1w",
            changeMonth: true,
            changeYear: true,
            numberOfMonths:1,
            onClose: function( selectedDate ) {
                $( "#start_time" ).datepicker( "option", "maxDate", selectedDate );
            }
        });
    });
</script>
</body>
</html>
